import { wechatrequest } from './API/request'

/**
 * 个人中心数量展示
 */
export const postCenterNumbersRequest = submitData => {
  return wechatrequest.postform('/userInfo/myCenterNumbers', {
    data: submitData
  })
}

/**
 * 人才沟通记录
 */
export const postTalentListRequest = ({ limit, userId, companyId }) => {
  return wechatrequest.get('/userInfo/getTalentTalkList', {
    data: {
      limit,
      userId,
      companyId
    }
  })
}

/**
 *根据城市名称获取区域列表
 */
export const getAreaListByCityName = (cityName) => {
  return wechatrequest.postform('/map/getAreaListByCityName', {
    data: {
      cityName: cityName || '上海'
    }
  })
}

/**
 * 获取屏蔽字
 */
export const getBlockWords = () => {
  return wechatrequest.post('@@/common/getBlockWords', {
    data: {}
  })
}
